<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function Clothes() {
        this.xiuzi = "jj";
    }
    Clothes.prototype.buliao = true;
    var Tshart = new Clothes();
    console.log("xiuzi属性是否在当前实例上");
    console.log(Tshart.hasOwnProperty("xiuzi"));
    console.log("buliao是否在当前实例上");
    console.log(Tshart.hasOwnProperty("buliao"));

    console.log("返回用于创建当前对象的函数");
    console.log(Tshart.constructor);

    console.log("isPrototypeof返回是否是当前对象的原型");
    console.log(Clothes.prototype.isPrototypeOf(Tshart));

    console.log("isPrototypeof返回是否是当前对象的原型");
</script>
</body>
</html>